package com.example.comtroller;

import com.example.entity.User;
import com.example.mapper.RoleMapper;
import com.example.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * @ClassName PublicController
 * @Description 测试使用
 * @Author zhaoluowei
 * @Date 2019/7/4  23:38
 * @Version 1.0
 */
@RestController
@RequestMapping(value = "/test")
public class PublicController {

    @Autowired
    private UserService userService;

    @RequestMapping(value = "/findUserInfo")
    public User findUserInfo(@RequestParam("username") String username) {
        return userService.findAllUserInfoByUsername(username);
    }


}
